<%@page import="java.util.List"%>
<%@page import="Model.Bean.*" %>
<%@page import="Model.Util.*" %>

<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt"%>



<% 

//ProductsManager phones = new ProductsManager() ;
List<Phone> products = new PhoneModel().ShowAllPhone();
request.setAttribute("Products", products);

%>

<ul id="productlist">
                    
<!--Show List Products  -->
<c:forEach var="item" items="${Products}">
	<li>
		<div class="box11 col2"> 
			<a href="Product?id=${item.phoneID }"  title="${item.phoneName}" class="product-image">
		    	<img src="${item.picture}" alt="${item.phoneName}" id="pimage" class="pimage" style=""/>
		    </a>
			<button class="btn-cart" onclick="setLocation('http://www.apptha-demo.com/template/magento15/pinstore/index.php/checkout/cart/add/uenc/aHR0cDovL3d3dy5hcHB0aGEtZGVtby5jb20vdGVtcGxhdGUvbWFnZW50bzE1L3BpbnN0b3JlL2luZGV4LnBocC8,/product/112/')" title="Add to Cart" type="button"></button>
			<h3 class="product-name">
			    <a title="${item.phoneName}" href="Product?id=${item.phoneID }">${item.phoneName}</a>
			</h3>
			<div class="price-box">
			    <span id="product-price-112-new" class="regular-price">
			        <span class="price"><fmt:formatNumber type="number" 
            maxFractionDigits="3"  value="${item.price}" />VND</span>
			    </span>
			</div>
			<!-- <div class="p_des"></div> -->
			<div class="actions">
			    <ul class="add-to-links">
			        <li>
			        <a class="link-wishlist" href="#">Add to Wishlist</a>
			        </li>
			        <li>
			        <span class="separator">|</span>
			        <a class="link-compare" href="#">Add to Compare</a>
			        </li>
			    </ul>
		     </div>
		 </div>
	</li>
</c:forEach>
</ul>

